package com.youxuan.ssyx.dto;

import com.youxuan.ssyx.model.acl.Permission;
import com.youxuan.ssyx.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "权限dto")
public class permissionDto extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属上级")
    private Long parentId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "名称编码")
    private String code;

    @ApiModelProperty(value = "跳转页面code")
    private String toCode;

    @ApiModelProperty(value = "类型(1:菜单,2:按钮)")
    private Integer type;

    @ApiModelProperty(value = "状态(0:禁止,1:正常)")
    private Integer status;

    @ApiModelProperty(value = "层级")
    private Integer level;

    @ApiModelProperty(value = "下级")
    private List<Permission> children;

    @ApiModelProperty(value = "是否选中")
    private boolean isSelect;

}
